﻿<Button 
    x:Class="TfsWorkbench.StatisticsViewer.StatisticsViewerButton"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Properties="clr-namespace:TfsWorkbench.StatisticsViewer.Properties" 
    xmlns:StatisticsViewer="clr-namespace:TfsWorkbench.StatisticsViewer" 
    Content="{Binding Source={x:Static Properties:Settings.Default}, Path=DisplayName}"
    Command="{x:Static StatisticsViewer:LocalCommandLibrary.ShowStatisticsViewerCommand}"
    CommandTarget="{Binding RelativeSource={RelativeSource Self}}"
    ToolTip="{Binding Source={x:Static Properties:Settings.Default}, Path=DisplayMessage}"
    >
    <Button.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/TfsWorkbench.UIElements;Component/Resources/ApplicationStyles.xaml"/>
                <ResourceDictionary Source="/TfsWorkbench.UIElements;Component/Resources/CommandButtonStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Button.Resources>
    <Button.Style>
        <Binding Source="{StaticResource StatisticsButtonStyle}" />
    </Button.Style>
</Button>
